package user

import (
	"github.com/gin-gonic/gin"
	"server/middle_ware"
)

//用户模块路由
func RouterUser(router *gin.RouterGroup) {
	//register
	router.POST("/register", Register)

	//login
	router.POST("/login", Login)

	//sendEmail
	router.POST("/sendEmail", SendEmail)

	//findUser
	router.POST("/findUser", FindUser)

	//用户反馈
	router.POST("/feedback", Feedback)

	//获取用户余额
	router.GET("/GetUserAccount", middle_ware.JwtFrontTokenValid, GetUserAccount)

	//实现用户充值
	router.POST("/mint", middle_ware.JwtFrontTokenValid, UserMint)

}
